﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DbUpgradeSqlite
{
    public partial class FormNewVersion : Form
    {
        public string IType = "自动";
        public string SqlTitle = "";

        public FormNewVersion()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (rdiBtnAuto.Checked)
            {
                IType = "自动";
            }
            else
            {
                IType = "手动";
            }
            string title = edtTitle.Text.Trim();
            if (string.IsNullOrEmpty(title))
            {
                MessageBox.Show("标题名称不能为空");
            }
            else
            {
                this.SqlTitle = title;
                this.DialogResult = DialogResult.OK;
            }
        }
    }
}
